﻿<%@ Control Language="C#" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="Syrinx.Gui.AspNet.Nitobi2" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>

<%Conditional on = "CurrentBizObj.product.metaType!=-Options"; %>
	<%Conditional on = "CurrentBizObj.product.quantityAvailable!=0"; %>
		<%Conditional on = "CurrentBizObj.product.quantityAvailable!=-2"; %>
			<%Conditional on = "CurrentBizObj.quantity!=0"; %>
			<div class="quantityArea"><asp:Label ID="_quantityLbl" runat="server">Quantity:</asp:Label><asp:TextBox runat="server" ID="quantity" Width="2em" /></div>
			<div class="cart"><snc:ActionButton runat="server" ID="add2CartBtn" Actions="$Parent$.UpdateBizObj" Text=""/></div>
			<div class="orderItemInfo">
				<asp:Label ID="description" runat="server" />&nbsp;&nbsp;
				<asp:Label ID="_subTltLbl" runat="server">sub-total:</asp:Label>
				<asp:Label ID="totalFormated" runat="server" />
			</div>
			<%EndConditional; %>
			<%Conditional on = "CurrentBizObj.quantity==0"; %>
			<div class="cart"><snc:ActionButton runat="server" ID="addOneToCartBtn" Actions="$Parent$.AddOne" Text="Add To Cart" TriggerParam="$id$" /></div>
			<%EndConditional; %>
		<%EndConditional; %>
		<%Conditional on = "CurrentBizObj.product.quantityAvailable==-2"; %>
			<div class="quantityArea" style="font-size:smaller">
			<asp:Label runat="server" ID="_needStart" Text="Make reservation to see availability." /></div>			
		<%EndConditional; %>
	<%EndConditional; %>
	<%Conditional on = "CurrentBizObj.product.quantityAvailable==0"; %>
		<div class="quantityArea"><asp:Label runat="server" ID="_unavail" Text="Unavailable" /></div>
	<%EndConditional; %>
<%EndConditional; %>
